package com.yj.consumer.config;

import feign.RetryableException;
import feign.Retryer;

/**
 * 自定义feign重试机制
 */
public class MyRetryer implements Retryer {
    @Override
    public void continueOrPropagate(RetryableException e) {
        throw e;
    }

    @Override
    public Retryer clone() {
        return new Default(100, 1000, 5);
    }
}
